home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr32 / alasaver.zip / 1BAT.BAK < prev    next >
Text File  |  1995-01-13  |  3KB  |  122 lines

  1. @echo off
  2. rem   1.bat: This is a simple DOS batch file menuing system, which may be
  3. rem   used with the alaSAVER screen saver.  alaSAVER was designed for use
  4. rem   with "alaCARTE", a simple, colorful shareware DOS menuing system.
  5. rem   which you might wish to use instead of this unwieldy batch file.
  6. rem
  7. rem   YOU CAN CUSTOMIZE THIS BATCH FILE TO FIT YOUR NEEDS.  To add an item
  8. rem   to the menu, you need to alter this batch file, and the display file
  9. rem   "1.ans".
  10. rem
  11. rem   Here's an example showing how to do it ...
  12. rem
  13. rem   Suppose you want to add SemWare's "Q-Edit" editor as menu item #1
  14. rem
  15. rem           As you can see from the following list, the "FIRST" item
  16. rem           is selected when you press the "1" key.  Scroll down to
  17. rem           ":FIRST", and change it ...
  18. rem
  19. rem           from ...        :FIRST
  20. rem                           cls
  21. rem                           1.bat
  22. rem                           goto RESET
  23. rem
  24. rem             to ...        :FIRST
  25. rem                           c:\qedit
  26. rem                           q.exe
  27. rem                           goto RESET
  28. rem
  29. rem           i.e., replace "cls" with the path to the new program, and
  30. rem                 replace "1.bat" with the command that starts the program.
  31. rem
  32. rem   To put the name of your program on the menu, save the modified batch
  33. rem   file, then open the file "1.ans".  You will see that this is an ANSI-
  34. rem   coded file ... be careful not to erase any of the characters, or add
  35. rem   any unwanted spaces.  Replace the "░░░░░1░░░░░" on line 1 with the
  36. rem   name of the program you added to the batch file, then save this
  37. rem   modified display file.
  38. rem
  39. rem   That completes the process.  Use the same method to add other programs,
  40. rem   or to change the menu setup.  In case of emergency, the .ZIP file that
  41. rem   contained this file contains backup copies, "1bat.bak" and "1ans.bak",
  42. rem   which you can use to get back to base.
  43. rem
  44. rem   Better yet, give alaCARTE at try ... it provides more space, provisions
  45. rem   for different categories, separate pages for different users, easy
  46. rem   editing, etc.
  47. rem                                 -= 0 =-
  48.  
  49. @echo off
  50. echo 
  51. cd c:\
  52. cls
  53. type 1.ans
  54. echo.
  55. choice /c:1234567890 /N /T:0,30  What's Next?... 
  56. if errorlevel 10 goto ALASAVER    '0
  57. if errorlevel 9 goto DOS          '9
  58. if errorlevel 8 goto WINDOWS      '8
  59. if errorlevel 7 goto SEVENTH      '7
  60. if errorlevel 6 goto SIXTH        '6
  61. if errorlevel 5 goto FIFTH        '5
  62. if errorlevel 4 goto FOURTH       '4
  63. if errorlevel 3 goto THIRD        '3
  64. if errorlevel 2 goto SECOND       '2
  65. if errorlevel 1 goto FIRST        '1
  66.  
  67. :FIRST
  68. cls
  69. 1.bat
  70. goto RESET 
  71.  
  72. :SECOND
  73. cls
  74. 1.bat
  75. goto RESET 
  76.  
  77. :THIRD
  78. cls
  79. 1.bat
  80. goto RESET 
  81.  
  82. :FOURTH
  83. cls
  84. 1.bat
  85. goto RESET  
  86.  
  87. :FIFTH
  88. cls
  89. 1.bat
  90. goto RESET
  91.  
  92. :SIXTH
  93. cls
  94. 1.bat
  95. goto RESET
  96.  
  97. :SEVENTH
  98. cls
  99. 1.bat
  100. goto RESET
  101.  
  102. :WINDOWS
  103. cd c:\windows     
  104. win    
  105. goto RESET 
  106.  
  107. :DOS
  108. cd c:\
  109. goto END
  110.  
  111. :ALASAVER
  112. cd c:\
  113. alasaver
  114. goto RESET 
  115.  
  116. :RESET
  117. cd c:\
  118. 1.bat
  119. goto END
  120.  
  121. :END
  122.